<?php 
/*
 * Copyright (c) Taras Kudla, 2010
 */
require_once("../core/init.php");
$Gepard->set("viewmodel","admin");
//$Gepard->set("runfile","admin/index");
$Gepard->set("routermap","[f].php?[m]&[a]&[p]");
$Gepard->set("accesslevel",_FUNC_ADMIN);
$Gepard->set("apifile","admin/api.php");
$Gepard->signal(_SIG_INIT);
if( $Gepard->user->getusergroup()!=_GROUP_ADMIN){
	header("location:enter.php");
}
$Gepard->cms->eventListener();
header("Content-Type: text/html; charset=UTF-8");
print $Gepard->view->render();

//$Gepard->htmlvardump($Gepard->getKernelTrace());
